package com.wmyg.antifake.service;

import com.github.pagehelper.PageInfo;
import com.wmyg.antifake.bean.Product;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface ProductService {

    public int insert(Product product);

    public int batchInsertProducts(List<Product> products);

    public Product selectById(String productId);

    int update(Product product);

    int delete(String productId);

    PageInfo findAll(String productName,int pageNum, int pageSize);

    List<Product> findAllProduct();

    Map<String, BigDecimal> findQrCodeNum(Long qrCodeId);

}
